<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #c-box{
            display: inline;
        }
    </style>
</head>
<body>
    <div id="app">
        <div id="c-box" v-for="item in arr">
            <input type="checkbox"  :value="item" v-model="arr2">
            <label for="">{{item}}</label>
        </div>
        <ul>
            <li v-for="item in arr2">{{item}}</li>
            <!-- <p>{{arr2}}</p> -->
        </ul>
    </div>
    <script src="./vue.js"></script>
    <script>
        const vm = new Vue({
            el:'#app',
            data:{
                arr:['科幻','喜剧','动漫','冒险','科技','军事','娱乐','奇闻'],
                arr2:[]
            }
           
        })
    </script>
</body>
</html>